from rest_framework import serializers

from apps.index.models import IndexUser


class IndexUserSerializers(serializers.ModelSerializer):
    class Meta:
        model = IndexUser
        fields = '__all__' # 默认生成所有字段

    def validate(self,attrs):
        return attrs